<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
</body>
<script>
  // 通过fetch 请求接口 https://jsonplaceholder.typicode.com/users
  fetch('https://jsonplaceholder.typicode.com/users').then(function (response) {
    console.log(response);
    return response.json();
  }).then(function (data) {
    console.log(data);
  })
</script>
</html>